import java.util.Scanner;

public class demo {
    public static void main(String[] args) {
        System.out.println("Java中程序控制语句");
        System.out.println("if …… else …… 语句");
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入两个整数的值");
        int a = scan.nextInt();
        int b= scan.nextInt();
        if(a>b){
            System.out.println("a的值比b大");
        }else{
            System.out.println("a的值比b小");
        }
        System.out.println("for循环打印0-10以内的数字");
        for (int i = 0; i <=10 ; i++) {
            System.out.print(i+" ");
        }
    }
}
